package com.lsh.airticket.feign;

import com.lsh.airticket.entity.Ticket;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lsh
 * @date 2021/2/24
 **/
@FeignClient("flights")
public interface FlightsFeign {
    @GetMapping("/flights/ticket/findTbTicketById")
    Ticket findTbTicketById(@RequestParam("ticketId") Integer ticketId);
}
